package cn.lyq.card.ui.bank

import cn.lyq.card.base.SimpleVM


class BankVM : SimpleVM() {

    fun getBankCardInfo() = simpleEmit {
        repository.userService.getBankCardInfo()
    }

    fun getBankList(key: String) = simpleEmit {
        repository.userService.getBankList(key)
    }

    fun editBankCard(card: String, bankId: Int, phone: String, code: String) = simpleEmit {
        repository.userService.editBankCard(card, bankId, phone, code)
    }
}